from flask import Flask, request, jsonify
from zhongGuangHe import single_transportation_plan
app = Flask(__name__)


@app.route('/getSingleTransportationPlan', methods=['POST'])
def get_single_transportation_plan():
    data = request.get_json()
    dict_of_result = single_transportation_plan(data)
    return jsonify(dict_of_result)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)